/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucmconfchecker.pUCM;

/**
 *
 * @author Administrador
 */
public class UCMNode {
    protected static int MAXID = 0; 
    protected int id;
    
    public enum Type{
        START, END, RESPONSIBILITY, FORK, JOIN, GENERIC;
    }
    protected Type type = Type.GENERIC;
    
    public UCMNode(){
        id = MAXID++;
    }
    @Override
    public int hashCode(){
        return id;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UCMNode other = (UCMNode) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }
    public Type getType(){
        return type;
    }
    protected void setType(Type type){
        this.type = type;
    }
}
